home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 21 / CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso / CUCD / Programming / Python-1.4 / Source / Amiga / Python_netlib / ioctl.c < prev    next >
C/C++ Source or Header  |  1994-09-29  |  614b  |  29 lines

  1. RCS_ID_C="$Id: ioctl.c,v 4.1 1994/09/29 23:09:02 jraja Exp $";
  2. /*
  3.  *      ioctl.c - set file control information
  4.  *
  5.  *      Copyright © 1994 AmiTCP/IP Group, 
  6.  *                       Network Solutions Development Inc.
  7.  *                       All rights reserved.
  8.  */
  9.  
  10. #include <sys/param.h>
  11. #include <sys/socket.h>
  12.  
  13. int ioctl(int fd, unsigned int request, char *argp)
  14. {
  15.   int success;
  16.  
  17.   /*
  18.    * IoctlSocket will return EBADF if the d is not socket
  19.    */
  20.   success = IoctlSocket(fd, request, argp);
  21.  
  22.   /*
  23.    * Maybe the EBADF should be converted to EINVAL if the fd is an usual file?
  24.    */
  25.  
  26.   return success;
  27. }
  28.  
  29.